a11y: Defer object registration after root registration
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 19 Apr 2022 15:12:08 +0000 (16:12 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 19 Apr 2022 21:05:46 +0000 (22:05 +0100)
commite41a4ced8bc589cbbac68f82b4f45264aa3bac87
tree4f28059b23b05ad4a4072ce76bbe03e622b50e28
parent8a6de521e7251240bb566a3c8fc32790422e9ca4
a11y: Defer object registration after root registration

The root accessible object is registered asynchronously, as it needs to
call a method on the AT-SPI registry daemon. This means we need to defer
registering the GtkAtSpiContext on the accessibility bus and in the
cache until after the registration is complete.

Fixes: #4825
gtk/a11y/gtkatspicontext.c
gtk/a11y/gtkatspiroot.c
gtk/a11y/gtkatspirootprivate.h